package com.gzl.b2b.demo.dao;

import com.gzl.b2b.demo.entity.Demo;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @version 1.0, 2019/4/21
 */
public interface DemoRepository extends ElasticsearchRepository<Demo, Long> {

    /**
     * 查找名字
     * @param name
     * @param pageable
     * @return
     */
    List<Demo> findByNameIsLike(String name, Pageable pageable);
}
